#ifndef CF_H
#define CF_H

#define MAXBANDS 8
#define LRANGE          14
#define RRANGE          12
#define GAC_LRANGE 3
#define GAC_RRANGE 3

static float32 K[MAXBANDS][LRANGE + LRANGE + 1] = {
    /* Band 1 */
    { 0.00000, 0.00000,
        0.00000, 0.00000, 0.00000, 0.00000, 0.00004, 0.00010, 0.00030, 0.00080,
        0.00240, 0.00639, 0.01757, 0.13172, 0.73254, 0.06387, 0.01998, 0.01038,
        0.00350, 0.00300, 0.00230, 0.00200, 0.00140, 0.00110, 0.00050, 0.00013,
        0.00000, 0.00000, 0.00000},

    /* Band 2 */
    { 0.00000, 0.00000,
        0.00005, 0.00014, 0.00029, 0.00048, 0.00071, 0.00086, 0.00105, 0.00124,
        0.00141, 0.00494, 0.01271, 0.09747, 0.83142, -0.00424, 0.03237, 0.01271,
        0.00419, 0.00141, 0.00052, 0.00019, 0.00007, 0.00002, 0.00000, 0.00000,
        0.00000, 0.00000, 0.00000},

    /* Band 3 */
    { 0.00000, 0.00000,
        0.00000, 0.00000, 0.00000, 0.00000, 0.00004, 0.00010, 0.00025, 0.00073,
        0.00195, 0.00534, 0.01531, 0.21432, 0.73217, -0.00267, 0.01956, 0.00607,
        0.00176, 0.00146, 0.00108, 0.00083, 0.00065, 0.00049, 0.00031, 0.00020,
        0.00007, 0.00000, 0.00000},

    /* Band 4 */
    { 0.00000, 0.00000,
        0.00006, 0.00020, 0.00034, 0.00052, 0.00070, 0.00078, 0.00090, 0.00104,
        0.00157, 0.00444, 0.01044, 0.10994, 0.86085, -0.00104, -0.00418, 0.00914,
        0.00301, 0.00090, 0.00026, 0.00008, 0.00003, 0.00000, 0.00000, 0.00000,
        0.00000, 0.00000, 0.00000},

    /* Band 5 */
    { 0.00000, 0.00000,
        0.00000, 0.00000, 0.00000, 0.00000, 0.00002, 0.00005, 0.00015, 0.00045,
        0.00135, 0.00343, 0.00925, 0.06548, 0.67127, 0.23406, 0.00737, 0.00298,
        0.00150, 0.00059, 0.00052, 0.00045, 0.00035, 0.00030, 0.00022, 0.00015,
        0.00007, 0.00000, 0.00000},

    /* Band 6 */
    { 0.00000, 0.00000,
        0.00005, 0.00016, 0.00027, 0.00048, 0.00076, 0.00098, 0.00129, 0.00140,
        0.00168, 0.00292, 0.00599, 0.05577, 0.70802, 0.19771, 0.01381, 0.00550,
        0.00194, 0.00081, 0.00030, 0.00011, 0.00004, 0.00002, 0.00000, 0.00000,
        0.00000, 0.00000, 0.00000},

    /* Band 7 */
    { 0.00000, 0.00000,
        0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00003, 0.00010, 0.00031,
        0.00096, 0.00232, 0.00758, 0.18735, 0.67749, 0.09616, 0.01971, 0.00372,
        0.00133, 0.00079, 0.00061, 0.00044, 0.00031, 0.00028, 0.00021, 0.00014,
        0.00010, 0.00007, 0.00003},

    /* Band 8 */
    { 0.00000, 0.00000,
        0.00003, 0.00010, 0.00016, 0.00026, 0.00039, 0.00048, 0.00064, 0.00086,
        0.00118, 0.00239, 0.00710, 0.23668, 0.66297, 0.05512, 0.01586, 0.00796,
        0.00382, 0.00191, 0.00089, 0.00048, 0.00029, 0.00016, 0.00010, 0.00010,
        0.00006, 0.00003, 0.00000}
};

/* GAC pixels before bright source
        0's in 1st column are ignored */

/* 28 Jan 2002, W. Robinson, SAIC, add pre-launch vol 31 corrections 
   for column 2 */

static float32 CF_left[MAXBANDS][GAC_LRANGE] = {
    { 0, -0.00079, -0.00000}, /* Band 1 */
    { 0, -0.00363, -0.00060}, /* Band 2 */
    { 0, -0.00069, -0.00000}, /* Band 3 */
    { 0, -0.00322, -0.00074}, /* Band 4 */
    { 0, -0.00028, -0.00000}, /* Band 5 */
    { 0, -0.00359, -0.00055}, /* Band 6 */
    { 0, -0.00027, -0.00000}, /* Band 7 */
    { 0, -0.00201, -0.00037} /* Band 8 */
};

/*  GAC pixels after bright source
        0's in 1st column are ignored */

static float32 CF_right[MAXBANDS][GAC_RRANGE] = {
    { 0, -0.00733, -0.00090}, /* Band 1 */
    { 0, -0.00110, -0.00001}, /* Band 2 */
    { 0, -0.00303, -0.00055}, /* Band 3 */
    { 0, -0.00043, -0.00000}, /* Band 4 */
    { 0, -0.00194, -0.00053}, /* Band 5 */
    { 0, -0.00061, -0.00000}, /* Band 6 */
    { 0, -0.00199, -0.00055}, /* Band 7 */
    { 0, -0.00233, -0.00033} /* Band 8 */
};

#endif /* CF_H */

